import request from "@/utils/request";

// 查询订单自动收货配置列表
export function listConfig(query) {
  return request({
    url: "/system/auto/receive/config/list",
    method: "get",
    params: query,
  });
}

// 查询订单自动收货配置详细
export function getConfig(id) {
  return request({
    url: "/system/auto/receive/config/" + id,
    method: "get",
  });
}

// 新增订单自动收货配置
export function addConfig(data) {
  return request({
    url: "/system/auto/receive/config",
    method: "post",
    data: data,
  });
}

// 修改订单自动收货配置
export function updateConfig(data) {
  return request({
    url: "/system/auto/receive/config",
    method: "put",
    data: data,
  });
}

// 删除订单自动收货配置
export function delConfig(id) {
  return request({
    url: "/system/auto/receive/config/" + id,
    method: "delete",
  });
}
